package com.ruoyi.record.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 个人履历对象 firefighter_record
 * 
 * @author ruoyi
 * @date 2024-10-11
 */
public class FirefighterRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 履历起始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "履历起始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 履历结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "履历结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 所属单位 */
    @Excel(name = "所属单位")
    private String unit;

    /** 职位 */
    @Excel(name = "职位")
    private String position;

    /** 消防员id */
    @Excel(name = "消防员id")
    private Long firefighterId;

    /** 消防员姓名 */
    @Excel(name = "消防员姓名")
    private String firefighterName;

    /** 消防员证件号 */
    @Excel(name = "消防员证件号")
    private String firefighterIdCard;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setPosition(String position) 
    {
        this.position = position;
    }

    public String getPosition() 
    {
        return position;
    }
    public void setFirefighterId(Long firefighterId) 
    {
        this.firefighterId = firefighterId;
    }

    public Long getFirefighterId() 
    {
        return firefighterId;
    }
    public void setFirefighterName(String firefighterName) 
    {
        this.firefighterName = firefighterName;
    }

    public String getFirefighterName() 
    {
        return firefighterName;
    }
    public void setFirefighterIdCard(String firefighterIdCard) 
    {
        this.firefighterIdCard = firefighterIdCard;
    }

    public String getFirefighterIdCard() 
    {
        return firefighterIdCard;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("unit", getUnit())
            .append("position", getPosition())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("firefighterId", getFirefighterId())
            .append("firefighterName", getFirefighterName())
            .append("firefighterIdCard", getFirefighterIdCard())
            .toString();
    }
}
